package com.zbkj.service.model.vo;

import com.zbkj.dal.entity.merchant.Merchant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class ArriveStoreAddressVO {

    @ApiModelProperty("店铺名称")
    private String storeName;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "省编码")
    private Integer provinceId;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "市编码")
    private Integer cityId;

    @ApiModelProperty(value = "区")
    private String district;

    @ApiModelProperty(value = "区编码")
    private Integer districtId;

    @ApiModelProperty("店铺地址")
    private String storeAddress;

    @ApiModelProperty("店铺联系方式")
    private String storePhone;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "经度")
    private String longitude;


    public ArriveStoreAddressVO (Merchant merchant){
        storeName = merchant.getName();
        storeAddress = merchant.getAddressDetail();
        storePhone = merchant.getPhone();
        province = merchant.getProvince();
        city = merchant.getCity();
        district = merchant.getDistrict();
        provinceId = merchant.getProvinceId();
        cityId = merchant.getCityId();
        districtId = merchant.getDistrictId();
        latitude = merchant.getLatitude();
        longitude = merchant.getLongitude();
    }

}
